package org.project.controller;

import core.Data;
import org.project.DigitalService;
import org.project.entity.dto.DigitalDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class DigitalController {
    @Autowired
    DigitalService service;
    public void save(@RequestParam DigitalDto post){
        service.save(Data.create(post).setHandle("save"));
    }
}
